package com.group.sliding.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.sliding.domain.dto.PayOrderFormDTO;
import com.group.sliding.domain.po.PayOrder;
import com.group.sliding.domain.query.PayOrderPageQuery;
import com.group.sliding.domain.vo.PayOrderVO;

import java.util.List;

/**
 * <p>
 * 支付订单 服务类
 * </p>
 */
public interface IPayOrderService extends IService<PayOrder> {

    PayOrder createPayOrder(Long orderId);

    void tryPayOrderByBalance(PayOrderFormDTO payOrderFormDTO);

    void cancelPayOrder(Long id);

    Page<PayOrder> search(PayOrderPageQuery query);

    List<PayOrderVO> queryMyPayOrders();
}
